<template>
  <div class="navbar" @click="handelClick">
    <div class="mine">{{labeltext}}</div>
    <div class="info">
      {{infotext}}
      <span class="iconfont icon-jiantou"></span>
    </div>
  </div>
</template>

<script>
export default {
  props: ["labeltext", "infotext"],
  methods: {
    handelClick() {
      console.log("导航子组件被点击了");
      this.$emit("barClick");
    }
  }
};
</script>

<style lang="less" scoped>
.navbar {
  padding: 5.556vw 5.556vw 5.556vw 0;
  margin-left: 5.556vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.278vw solid #cccc;
  .mine {
    font-size: 3.889vw;
    color: #333;
  }
  .info {
    font-size: 3.611vw;
    color: #999;
  }
}
</style>